package com.business.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.business.mapper.T_productMapper;
import com.business.domain.T_product;

@Service("t_productService")
@Transactional
public class T_productService{
	private static Logger log = Logger.getLogger(T_productService.class.getName());

	@Resource
    private T_productMapper t_productMapper;


	public int save(T_product obj){
		 return t_productMapper.save(obj);
	}

	public int update(T_product obj){
		return t_productMapper.update(obj);
	}

	public int delete(T_product obj){
		return t_productMapper.delete(obj);
	}

	public T_product findById(T_product obj){
		return t_productMapper.findById(obj);
	}

	public List findAll(T_product obj ){
		 return t_productMapper.findAll(obj);
	}

	public int findCountAll(T_product obj ){
		 return t_productMapper.findCountAll(obj);
	}
}
